Removing not valid configuration entries from yaml file.