Remove template file duplicates.