Fix async callbacks.
Only run migration tasks when the appropriate services are enabled.