Simplify get_defined_constants