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