refactor batch-write-item to support puts and deletes in the same request