refactor/clean: extract method in not_a_security_alert_checker

for lowering complexity