Epithelial and non-epithelial Ptch1 play opposing roles to regulate proliferation and morphogenesis of the mouse mammary gland.