Restructuring Foreign Entities Understanding the Architecture