Moved common bounding box extraction code into ocr managing class.