Created the environment service to remove some bloat from the controller. As this is interacting with other domains it seemed a sensible option.