High electricity costs, inflation, an aging building and difficult recruiting skilled workers factored into the decision.