Can this be a simple

    case x ⇒ (Nil, x)

?