Refactor Post and PostComment: extract method update_object