Refactoring comment logic and post logic, common base class CRUDLogic