Cleaning up the generated models.