relay: merge connection classes