Refactor setting of server conf into IO function.