Moved processing logic out of CustomProcess into new class Processor.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>