Add liftBaseOpDiscard utility function