Make use TemplateService

This replaces the hard-coded parsing and note building in favor of the TemplateService API.