Remove BiEventStream and TriEventStream.
Refactor recursion handling.