What is the remedy for sexual dreams

There was a post on here that said that if you are still having nocturnal emissions then you aren't on a streak and haven't really walked the path yet. That post really annoyed me but it stick out in my head because I have struggled with the dreamscape since I stopped watching P years ago. In the beginning it was an excuse to relapse then it turned into a tortous feeling of shame but now I just want a holistic answer to why even when I'm doing the best I can to avoid lustful thoughts and situations, doing my exercises, yoga, pranayama, meditation, etc this part of my life just seems to linger on.