service: Split reply_pending function to two parts