Unify two callbacks into one callback.