A Common Factor Approach to Spatial Heterogeneity in Agricultural Productivity Analysis