Move most of application into the processor factory
Extract ToMatrix interface to make equality tests DRYer.