Refactoring backlog graph stats generation