refactoring moderation