Refactor Behaviours: set BrokerReceiveDistributeEvent as an inner class.