Great, thanks. I was sure there is such a tool, but didn't manage to find it
However, it uses filelists for pruning. There is a bunch of lists out-of-box, but to make new ones you still need to find exact filepaths for parts.
I also found PartManager plugin for CKAN. It suits better for me. (author of the plugin disappeared, current version of plugin is on the second page of topic).