[DF-4571] fix review issues. Refactoring YamlNode class.