Revert "[TwoPhase] do not store a const reference to the GridView"

accidentally changed too many lines

This reverts commit fd4a9afb5f41bc23eafafb8e52c491a6854e589a.