You could cut out the earlier M-3/M-4 bogie assemblies as complete units, by cutting into the track links between the links, and remove the assemblies. You would have to first make sure that the track links will line up with the section of track with the extended end connectors. Then do the same to the section of tracks with the extended end connectors, and then glue the two sections together to form a new section of track.
You would then have to cut the extended edge connectors off of the section of track/bogie wheel assemblies that you cut out , at the edge of the extended edge connectors and track links,, and glue them onto the new made section of tracks.