New York factory gets an energy windfall