Factorize AMQP checks
Factorize usage