DRY-ing up the logic around ai_resolution_available? and ai_resolution_enabled?

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

As mentioned in the description and !168285 (comment 2146031570), this issue will track the DRY-ing up the logic around ai_resolution_available? and ai_resolution_enabled? in ee/app/models/security/finding.rb and ee/app/models/vulnerabilities/finding.rb.

Edited by 🤖 GitLab Bot 🤖