Refactoring bitmap compression for Bitmap Update.