I see a huge opportunity to extract lines 38 through 40 as a method that can be reused by this method and the one above.