Refactored use of dumb processor as per https://github.com/bbatsov/ruby-style-guide.