Cleanup: combined identical templates.