SERVER-78179 covers the removal of code from the online movePrimary project that is polluting external files. Even once that ticket is completed, there are still some online movePrimary files that exist, though they should be referenced by nothing (and therefore not as much of a maintenance burden). Regardless, they should be removed. This covers all files in mongo/db/s/move_primary/*. Assuming SERVER-78179 captured all of the external files correctly, nothing should fail to compile once these files are deleted (though if it does, prioritize removing those references first).
The SConscript files will also need to be updated to no longer reference these files.