Remove unnecessary null checks.