Move factors to LMDB.