Add code to generate factories from a factory interface, and re-organize the processors into processors and generators.