refactoring of the Langohr "hello world" RabbitMQ tutorial code