Consolidates templates