Excluding classes that is not accessible from dependencies