Women who had surgery to treat their endometriosis also lowered their risk of developing ovarian cancer. A study of approximately 600 Swedish women found that those who either had one ovary removed or had surgery to remove endometriotic tissue had a 20 to 42 percent lower risk of developing ovarian cancer.
See the abstract here
See an article about the study here