Someone who is unintentionally unkind will receive a quiet word better than a hundred codes of conduct. That's how you change hearts and minds.
I wonder if you think that CoCs -- or more generally, rules -- have other legitimate purposes?