Extract OCR class.
Cleanup.