WIP: extract V1 cartridge code from app_container