refactor rabbit_config