Remove unecessary methods
Remove restore stats on abort
Only generate a commit to patch-repo if we're holding changes