Need to think about it a bit, but I'm pretty sure now that this is pulling from a form instead of the querystring, a lot of the repetitiveness can go away. I might poke at/fork this and throw together an example of more streamlined building-up of the query arguments.