We are checking for the `deprecatedFunction` since the found `func` might be a method that is being used in "compatibility mode" i.e. a constructor method defined on the prototype.