Gaming is for having fun. Fun requires clear rules.
Just thinking, what if you have routed unit in a castle/stronghold and you have the special consolidate power order there (these are resolved after any battles, but before routed units stand). Can you upgrade a routed footman in that case? What you folks think?
Not forbidden, so you can do it.