Simplify ModerationManager.post_save_handler.

Restructure the code to reduce nesting and improve readability.