Remove a deprecated use of defined()