Another common code smell is long subroutines and methods. The solution to these is to extract several shorter methods out, with meaningful names.