refactored training data extractor to use featuremaker class