Refactored TableExtractor to use shorter, easier to read methods.