Use the common key pattern functionality with device implementations, and clean up related DSP and generator code.