Refactored the event based risk calculator to use RiskModel.compute_output