Degrading myself

I have a bad habit – something negative that I did from my past will pop into my mind and then I will degrade myself or insult myself for my actions back then.   It will only take a moment to do, then I will move on and leave it behind me.
Should I treat the recalled event as a Circumstance and try to use the model on it ? Or what should I do when those past memories come up in my mind ? These recalls can happen at any time and any place.