Not really necessary to have this `dest` variable, you can just set `item.dest` directly. And optional, but the logic might be a little clearer if you do the deleted check nested inside `if item.to:` instead of checking that twice.