clearer Payload.define implementation