Created and refactored separate ITemplateHandler interface.