Only at this point is `params` an `object` due to `route.pathAndParamsFromArgument`.

Before that point, `params` can be either a `string` or an `object`.