Use BasicWebComponents' helpers for flattening content.