My point was: Instead of adding another (very similar) function, the existing function should be modified to make it generic enough to use for both use-cases.