Allow the extractor method to be passed in as a param.