Split RMQ handling into its own class.