compression_wrapper: refactoring.