Refactor and improve efficiency of GithubService

GitHub #50