Example of create template refactoring method.