improves api key management; no longer retrieving it in different ways from different parts of the application