We can use `NSProcessInfo`'s `environment` property instead. Also, `LOG_API_RESPONSES` seems to be used in a couple places now so let's pull it out.