Refactor the creation of Eloquent models.