Simplify ledger access in PathCursor methods.
Extract method previousNode().
Extract method PathCursor::node().