Refactoring this in would make debugging a lot easier when things
don't match up. And maybe we want to unify the search-and-replace
and regex templates to just all be regex templates while we're at
it.
Can we factor out any of the template comparison stuff to be
shared between the create and update tests?