Remove unnecessary callback code.