Move stats_key structure to stats.h