Big refactor in TorrentAlertAdapter (partial commit).