Extract a method