[Vivi] Refactoring methods duplicated from statistic helper.