Optimized requires; extracted archive factory