Add optional $collapsedParams to regular getQueryParams for the case when you only want to collapse a few.