Refactor calls to external Google APIs to its own class.