Don't allow zip archives with more than 64k files
Don't try to create archives > 4Gb
Centralize conditionals
Combine common code