Add a shared format payload method

- [ ] -> `formatPayload()`