Implement the top-level logic for the tag separation migration.