Use a YamlFile object instead of an enum