Peeling of convection cells and the generation of sheared flow