Extract method in Tag