Remove unnecessary conditional checks.