What I do is a make a copy of the file i need moved, update every dependency, make sure everything works as before with the new file, then delete the old one.
Usually takes like 1-2 min of my time and i don’t need to fight with anything in the process.