Refactor LookupLedger.cpp.