Why did the factories cost many craft workers their jobs?