Instantiator deletes all previous templates before setting the template of the new publication. This fixes bug #38417. The change includes some refactoring. Updating the search index configuration is disabled, because it violates SoC by working with cocoon.xconf patch files - this doesn't work anymore since the patch files aren't copied to the build directory.
Changed paths: