Refactoring Middleware.FreeGame.Environment