Extract method: method generator