Refactor to enum ServerEnvironment