pan/midgard: Move DCE into its own file