Extracts the selected template part or a tag into a new single file component.