Fred: Refactored for producer and consumer to have common RabbitMQ binding code