Engaging in cleanup for templates