rather than calling `issubclass` twice you can call it with a tuple: `issubclass(to_function(field), (ds_filter, ds_field))`