Factor out common bean defs.

Not quite what I wanted to do with XD-353 _per se_, but it's a start.

Asking for review mainly about the use of <int:bridge> in local: any side effect? hidden throttling?

Please merge asap, as it fixes RabbitMQ transport