Refactor Github.rb