Might be worth adding the name of this function in this warning (and the others), to make it easier to spot?