Creating a helper class allows the logic to be centralized and reused in both the trigger and the Lightning Web Component (LWC), avoiding repetition. Using custom metadata to store the criteria value allows easy updates without code changes and can be referenced from both the helper class and the trigger. References: Apex Developer Guide Custom Metadata Types Guide