Refactor event creation to follow REST.