Split out read_config to a cookbook library.