Cleanup of view hierarchy.