refactoring in gemfiles