refactored the moderating policy logic to applicationpolicy
Merge pull request #2 from chanachor/refactoring

Refactoring