Instead of injecting the container, why not just inject the migrator itself? Also, needs typehinting.