Create the directory in the correct place.
Put remove_version_or_discard in the correct place.
Remove version name in the new file also.