sudorule: Refactor add and remove external_post_callback