Suggestion 1: Under NPM Settings -> Node & Group Management -> You can use 'Manage Dependencies' to restrict the same.
Suggestion 2: To improvise your setup, as a next step you can segregate the nodes by grouping them accordingly by using 'Manage Groups', once you are done with Parent & Child Groups, you can use these Groups in 'Manage Dependencies'. This would be a systematic approach, but then it again depends on what best suits your requirement.
Hope this helps