Refactoring HocrTransform class to make pylint happy.