Refactor the codebase of progression server.