On the origin and elimination of macroscopic defects in MBE films