You should use optional dependencies instead of this additional scan.