It turned out that all usages of this function always had `T = Any` so there was little utility of leaving it generic.