remove superfluous templates