Refactor the state handling methods from the Torrent class into the Transmission class