can we use the "Click and Drop" method. Such as, Click the Legionnaire and Drop onto the Imperian. As such, it will recalculate the resource to build the Imperian.
Otherwise, could have a feature to manually disable / enable the troop for building. for example, an offense village, I might not require to build the defense troops. This would help to resolve the problem.