Remove unnecessary query params.