'a while' is an understatement. You first need a stable or perceived greater demand. Then you evaluate your own supply chains, then you start the cost-benefit analysis. Equation is a bit simpler if you need new capacity which requires a new factory or facility!