Moved big method out of class.