Remove old merge files and move XML to template render.