Factors in selecting factory locations