Reformat and fix $this in static context.