[DF-4571] move class YamlNode in individual file.