For a reason that I do not remember, we use ``if hasattr(config, 'rabbitmq'):`` everywhere else. I remember that using ``in`` raised an error in some cases, but don't remember what those cases are.