function getTxHandler (tx) {
  return typeof tx['@@transducer/step'] === 'function'
    ? new TxAdapter(tx)
    : new LegacyTxAdapter(tx)
}
Given an object supporting the new or legacy transducer protocol,
create an adapter for it.
@param {object} tx transform
@returns {TxAdapter|LegacyTxAdapter}