[client][events] Make parseData() more readable