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