Move the backup folder logic into own module.