@arikfr how about using a config object here?
```js
this.registerVisualization = function(config) {
  var visualization = {
   rendererTemplate: config.rendererTemplate,
   editorTemplate: config.editorTemplate,
   type: config.type,
   name: config.name,
   defaultOptions: config.defaultOptions || {}
  };
}
```