avoid nested objects in discovered metadata