Refactor abstract Compressor class to an interface