Being something that should be useful in other places, I added a new inter-module API function that implements the logic above, respectively `t_find(...)` via the commit a9cf4577c25d7933531b8969a1941bac4faf8d68 .
It is completely independent, does not touch other internal functions, so should be fine to backport as well.