Refactoring version.rb