Native American factory to get a new life—as a jail