Rather than making the factory depend on HBase, let's move the common function to a new common (abstract ?) base class for the two JobHistoryFileParserHadoop classes. Then each class can extend this base class and use the shared functionality.