Split up archive extract/load code into separate functions