Extract classes and utility module for AMQP