Extrinsic and intrinsic mechanisms directing epithelial cell sheet replacement during Drosophila metamorphosis