This method is only used by `GridRowSet`, so it should be moved there.