Refactor appStats payload format