Cleaned up code for enabling and disabling auto migrations in the magento.service.