Refactor to allow for per-DCPS metadata in code generator.
Add warning not to edit generated files by hand.