eve-log: stats logging code cleanup.