Refactor the Gemfile