Extract method.