Removed all global dependencies but router.