Refactor struct transport_ops inlined into struct transport