Refactors template name methods