The compression script should be refactored to ensure a clear separation between the CLI and the core functionalities.