Cool! Maybe we should get rid of `applies_to` entirely since we need to duplicate the logic here anyway?

For cleanliness, we could also consider a constant dict that maps types to default query classes. But that's just for elegance and is not fundamental.