Slavery’s ghost haunts cotton gin factory’s transformation