Bidi support externalized in a mixin.
Bidi support externalized in a mixin.