Refactor out querystring.