Remove unneeded models.