I usually try to flatten the branches, using `else if` when a `switch` statement isn't viable.
if (A && B) {
return 1
else if (A && !B) {
fix(B)
return 1
else {
return 0
}