Remove duplicated stuff on hook_func