code: function injectSubClasses (_object) {
    var object = _object
    for (var key in object) {
      if (~key.indexOf('__')) {
        var keySplit = key.split('__')
        var parentkey = keySplit[0]
        var newKey = keySplit.slice(1).join('__')
  
        object[parentkey] = object[parentkey] || {}
        object[parentkey][newKey] = object[key]
  
        if (~newKey.indexOf('__')) {
          // do it recursively
          object[parentkey] = injectSubClasses(object[parentkey])
        }
  
        delete object[key]
      }
    }
    return object
  }
docs: only for one level down tbd: make it recursive transforms {className__subClassName: {property: value}} to {className: {subClassName: {property: value}}}