ModelFactory
move code from HttpPipeline to HttpService