Refactor carrierwave.rb