MAINT: clean up wt.template.c