migrator: Extract out of band migration runner logic
Created by: efritz
This is a refactor step towards #39578 (closed). This PR extracts the bulk of the migrator run-out-of-band-migrations
command so that it can also be used by migrator upgrade
.
Test plan
Existing CI pipelines.