[JGroups] Refactored exchange creation.