Separate dependencies based on scope.