Moved common environment variables into helper method