Modularized TreeDBIndexer.