removes router state dependencies