Pruning fronts and the formation of horseshoes