Refactors gemfile