Refactor Bzip2BitWriter