Refactor MessageProcessor#process

Code Climate was moaning about this method, so I've refactored it :blue_heart: