It is not easy to generalize this block of code for both classical and event based bcr calculation mode. I prefer to have small utilities in the risklib that could be combined easily instead of having bigger ones that have to be used in a proper way and only in specific calculation mode.