I think you could replace this line with `template_kind` and it'll generate one & fill it in.