I’d be cautious about using refinements.
- If we add the method you’ll run into conflicts.
- We run automated analysis tools on extensions shipped to Extension Warehouse - making sure they don’t modify the API namespace. I’m not sure we can reliably tell the difference between that and refinements. It’s a good chance you’d be flagged and rejected.
- This is doable with standalone methods that takes the definition as a parameter - safe from any potential conflicts.