Refactory and google API Key