Refactor API keys config out of app