Refactor github_api_v3 and github_api