Refactor parser architecture in order to follow the cake pattern

Although we have implemented the cake pattern, mocking is still impossible for unknown reasons.
Tests on parser remain more functional than unit.
Avoid such getters and add `val` to the parameters of the class you want to access from outside.