Refactor into k1processor.