merge entityprocess/bulkentityprocess into one type that takes an iterator