cleanup task should remove orphaned memberships
There should also be something in the cleanup task for removing entries in membership where the user no longer exists. In the production we.riseup.net we have some scripts that remove users via SQL directly, but were missing that part (now fixed) and it would have been good if cleanup had seen them too.
Also remove_dead_memberships
seems to have a desc that was cut and pasted from remove_dead_federatings
but not changed.