Refactored some of the moderation module.