extract_thresholds_by_key function

Extract risk thresholds by key