Can we break this method into smaller methods so that it's easier to test and maintain?