Refactor to avoid any vuze dependency inside the common torrent package.