There are some warnings in the aux_factory module which use stacklevel in an attempt to make the messages more useful to the user. (Although they also supply the redundant UserWarning argument if I recall correctly.) So I like what @rockdoc has done here.