Remove unnecessary models.