repack: stop using magic number for ARRAY_SIZE(exts)