Refactor upgrade steps

- Move the upgrades module to its own folder to make it easier to maintain
- Refactor tests to avoid issues with next profile version