Move logic from Grid constructor for initialize grid field in private method.