Refactor 'hvStat.database.maintainObjectStores'