Refactor sideflow exchanges