Simplify private paste trivalue logic.