Logic in triggers can't be exposed for test purposes and cannot be re-used anywhere else in your org. As a best practice, developers should avoid placing any business logic directly inside triggers. Instead, one should use a handler class or a trigger framework.
Business Impact
Decreased operational efficiency, increased potential for human error, delayed time-to-market, and decreased employee satisfaction.
Is your Salesforce solution affected by Business logic in triggers?
Clayton detects anti-patterns and offers automated fix advice to kickstart your Well-Architected journey.