Move DCP panel code into its own source file.