Normalize payload

* Adds normalizePayload hook to remove unneeded JSON keys