Cleaning up metadata in extra_files and ts_files.