Reduce reflection in templates/service.tmpl