Can an urban druid use their companion creature as a divine focus?

Urban druids can have a manufactured object like a gear or a horseshoe as a divine focus, and their companion creature can be a small animated object. Is there anything stopping them from having an animated hammer (or even an animated sword) that follows them around, which they can command to attack at a distance, swing as a regular weapon, and also grasp to cast divine spells?