refactor TrustClientHttpRequestFactory.