A helper method for accessing the environment key would make these three methods a bit more readable.