Extract two helper method from "NaryTraverser.Next".