Two words: Dependency Injection.
Example: instead of relying RobustProvider in the function signature, we could rely on alloy's Provider trait.
This would enable unit testing functions that can currently only be tested with integration tests; some of the flows can't even be tested that way, e.g. reorgs during latest events mode.