Remove component from navigation before deleting it