This PR mainly refactors the code base to extract smaller functions.
The main driver for this refactoring was to be able to understand the logic of the function map_event.
To do so, I extracted dedicated functions for each case. And large chains of calls have been moved into functions naming their intent.
This PR mainly refactors the code base to extract smaller functions.
The main driver for this refactoring was to be able to understand the logic of the function
map_event
. To do so, I extracted dedicated functions for each case. And large chains of calls have been moved into functions naming their intent.