You talking about the `query` variable? That seems like it'd make the code a lot uglier by breaking this apart into chunks and having to `del` one key and add another each time. The way it is, it looks like a typical ES query that you can scan all together.