chore(azure): simplify calculation for getMergeMethod
#42849
+86
−23
Merged