code style fix: move imports out of functions
fix: UrlExtractor need not hold a reference to actionsQueue.