Removing useless empty callbacks.