Extract a method.