Big refactor of automatic reindexing of (related) models