Reduce local complexity by extracting methods