Move http_build_multi_query outside class