refactor http client creation to use single util class