Replace deprecated import of _local_func with block_reduce