Legislation that followed had the effect of moving work out of factories into urban homes