cleanup unused define_hooks