Refactor edit template to be driven by `$:/tags/EditTemplate` tag