remove usage of deprecated allocate() lazyflow API