modular-bidi: use new bidi helpers