refactor owner code in torrentmanager add method