Refactoring: breakdown cloud.rb