Remove useless YamlConfiguration object