Dispose redundant and unrelated YamlFile class