I usually group related functionalities into individual files, and I try to make them as Script-agnostic as possible. So basically I try to keep the business logic and rules in files that aren't actually Script records, but are Libraries/custom modules instead