Backup script refactoring (S3 logic brought to outside class)