Remove unused code in copy_template.S