From my own experience, the agonizing part is bringing yourself to the point where you can actually open your mind enough to look at the hurt with a view to putting it behind you. Once you've determined not to let it affect your current life any further, somehow it shrinks in significance.
I'm sure that is a lot more difficult than it sounds. Just when I think I'm past it, it can rear it's ugly little head!