Now that I think about it, I think it makes sense to split this into to functions: one of them is a method of the class metric (which will, in future, read from class variables that are supplied from user config to decide which stas to collect), and another is in utils (with args). I will update.