Removing components of undefined structure