Move migration and upgrade commands into separate service providers.