Extract method and inline variable