Small refactoring in ArchiveWriter