A link between endometriosis and bacterial infection suggests a potential way to treat the painful disorder