prevent orphaned regions appearing on a platform

When redundant regions are found, remove the regions from the platform, and remove the platform id from the regions.