Extract dependency exclusions out to a standalone project.

So we can use it in the plugin as well for archiving.