Is there a way to replace lava in caves with water using surface rules or something similar?

I want the caves in a dimension to be filled with water instead of lava. Is that possible? The lava seems quite hard coded.
Continue to help post