What I mean is this:
Suppose someone is doing a job, like washing a car and someone insults that person. The person then stops washing the car just to punch the other person and then returns to washing the car.
I once heard something like:
"The person got out of his way just to punch him".
or something like that.
The phrase construction is also used when a person does something they are not supposed to do and the person narrating that is surprised by the good action.
Like, he changed his normal behavior to do that for me...
My first example is probably wrong, but I remember the words "of his/her way" ... or something like that. Excuse me if I am not that clear.