Made explicit the dependence from the getters

This is just a refactoring cleanup. The getters should be passed to the RiskModel object, not part of it.
See the companion PR on the engine.