Removes redundant isnan definition.