[ROP-6] Refactor cds pricing to a single function