Remove unnecessary collapsible fragments in edit mode