Tidied up implementation of the UseRabbitMQ method.