Refactoring, configure template