I added this helper function to filter the parameters, often this is done in the controller, but that requires the controller code to know how the search form is using and handling all the parameters