Remove unused method `nested_dependencies`.