Cleanup templates