Major refactor of ChatModerator