Remove redundant call to setTemplateType()