I like that you extracted this. Let's rename the `model` parameter to `id` since that's what it ends up being. The first line is a guard clause for the exception when id is a model and we must convert it to its id.