Refactoring: deprecate TemplateFile