Replace Method With Method Object
You have a long method that uses local variables in such a way that you cannot apply extract method.
Turn the method into its own object so that all the local variables become fields that object.
You can then decompose the method into other methods on the same object.![](http://www.cnblogs.com/images/cnblogs_com/nanshouyong326/90398/o_20080126(020).jpg)