LPS-33258 Allow grouping behavior to be configurable per portlet