Slightly cleaner way of redefining request query string