Template cleanup repeats