Breaking up a big method