As all queries are stored in the `_queries`, there's currently no distinction in which of them are filters and which are groups. This becomes problematic when one of the queries is remove and the filtering needs to be re-calculated.