Refactoring in Ruby Workbook