transform() {
    multiReplaceStatement({
      parent: this.parent,
      node: this.fullNode,
      replacements: [this.toClassDeclaration()],
    });
    this.replacements.forEach(multiReplaceStatement);

    this.methods.forEach(method => method.remove());
  }
Replaces original constructor function and manual prototype assignments
with ClassDeclaration.