Extracted MessageConsumer to top level.