Remove some callbacks and functions which are not needed.