Extract any unit_key fields from metadata if None