Refactor the reset_state function to factor out the "quiddity protection" functionality in another function
The reset_state function has two different functionality : resetting the state of switcher by removing all the quiddities except the protected ones and flagging the existing quiddities as protected.
We should refactor this in two functions and write/adapt a test for them.
The following discussion from !544 (merged) should be addressed:
-
@flecavalier started a discussion: