Limit transitive dependencies based on scope