Move adapter processor over to generate code with the scope of the module.
Eliminate deprecated constructor.