Refactored queue configuration and consumer configurations.