Sanitize metadata.y and prepare for property datastore.