Move Code Into Separate Method