Move initTemplates method to constructor