Make rabbitmq layer resolution conditional on actually trying to use rabbitmq