Small refactoring on print statistics