Refactor stats functions to SprintTransaction class

Change-Id: Ifcbc65259f8a077ad4dae4b909076f6e7e82c9c4