remove obsolete 'foreign' fields