removing globals that belong to legacy parent