I think it's fine to have this outside ``SearchParam``, it could be used by something else. I actually think it should even be outside this file, but that looks fine to me at the moment. If we start using it from somewhere else, we will probably want to move it to a better location.