flatten out desired capabilities when multi level keys are used.