If I push my wife off a cliff for life insurance but she falls onto and kills a terrorist or school shooter does that lessen my crime? Does it even change the nature of my crime? No so it shouldn't enter in.
Judges take into account the "impact" of the crime all the time in sentencing. As they should.
In this case, his crime had no negative impact on anyone, and the unduly harsh sentence sure looks like a sentence for the unlikable (but perfectly legal) price hikes he did.