I think this logic should be present in the streamLibContainer itself as it owns and produces this data.
This way, if somebody else needs the same logic at a further point in time, it can reuse it from there.