Refactored group posting code into a helper function