migration: Add the core code for decompression