refactored common Post and Comment Policy code