Make hashDatabaseHasLegacyLookupIndexOnly() static.