Refactor check for requiring restart
Maintenance mode & app restart only with migration