Remove ConfigAccessor and add YamlFile for compact access and an extra constructor