Remove new-style registerCallback