[PLAT-4067] Refactored the multi-curve discounting function
[PLAT-4067] First stage pf refactoring multi-curve functions