Refactor to reduce cyclomatic complexity.
Ensuring explicit comparisons.