Handle exclusions in foreign object generation