Move default hosting environment code
Handle null configuration in HostingServices.Create