function jssCompose() {
  function onProcessStyle(style, rule) {
    if (!('composes' in style)) return style
    registerClass(rule, style.composes)
    // Remove composes property to prevent infinite loop.
    delete style.composes
    return style
  }
  return {onProcessStyle}
}
Convert compose property to additional class, remove property from original styles.