Moves retrieve_archive method to the utils module