Move the context map encoding function to the brotli_bit_stream library.