Do not search the ancestors for const_defined and const_get