In some cases (such as #1747), the migration should be run before the library update as the library update results in the deletion of some nodes of interest in the project.
We should introduce a flag for migrations which enable them to be run before the library updates (beforeLibraryUpdate maybe?).