refactor HPNativeBridge to Cobalt