I would simply pass both query parameters in the `$uri` regardless of their values (Kill Bill will do the right thing if both are specified).