Remove code duplication between ref index and photon yield tasks
This is a follow up to !323 (merged). There was a lot of code duplication between the two algorithms. I have moved this to a shared base class.
This is a follow up to !323 (merged). There was a lot of code duplication between the two algorithms. I have moved this to a shared base class.