Refactoring the API key location.