It simplifies the API. It makes testing easier (for both BetaCalc and the plugins themselves). It reduces the dependencies of our system, making it more loosely coupled.
https://css-tricks.com/designing-a-javascript-plugin-system/
origin - https://www.pipiscrew.com/2020/08/designing-a-javascript-plugin-system/ designing-a-javascript-plugin-system