Move the stuff from check_derefed_params.c into check_null_deref.