This code is only used in the tests for creating 'fixture' payloads, so it shouldn't be kept in the models.