Refactored backup/restore operations into task classes