Add scope property to extractor (currently ignored)
Move config to config object