Mod code of conduct only works when someone above the mods gives a fuck about enforcing it.
and as we saw with reddit, the only time admins stepped in to deal with mods was…when subreddits were protesting reddits own bullshit.
You could limit the damage by at least preventing people from amassing ridiculous amounts of power by becoming moderators on hundreds/thousands of subsites.