Use correct return type when creating grid
The grid factory will return a unique_ptr
by now which can not be
converted into a raw pointer.
This should also fix the CI failure.
The grid factory will return a unique_ptr
by now which can not be
converted into a raw pointer.
This should also fix the CI failure.