To ease downstream compilers, ES5-style class definitions should be turned into ES6-style class definitions.
While they are purely syntactic sugar, it's better to provide downstream compilers the guarantee that if they see a function, it's not a method of some known class.