Reorganizes AMQP class