Simplifying conditions in R_LookupMethod.