I did think that, but then I remembered that it was the RPM migration that won't be able to do it this easily, since it needs to combine two settings into one with an AND operator. It will be possible to do that with a JavaScript dealio to Mongo, or you can do it in Python, but sadly it will still need to be at least two queries.