Reduce duplication in template_structure_military*
Patch By: Nescio Differential Revision: https://code.wildfiregames.com/D1793