Added null for metadata OneToOne in Layer and Provider.