Fix code move refactoring in Ruby code