Refactor RabbitMQ configuration extension