The cavalry will pull out and move to the flanks, which is what cavalry does to screen the flanks to try to ensure that those flanks now occupied, that line occupied by heavy infantry is not outflanked by advancing Confederates.