Converting Web API to be self hosted.