You can have your cake, eat it, and eat the crumbs, too.
Prevent cake layers from sticking to the pan and crumbling when you try to remove them by spraying the pan with cooking spray, lining it with wax paper, spraying again, and dusting with flour.