refactor bans and mutes, no functional change