Refactoring template usage.