Is this the end of the block that should be extracted to a function? It's a little vague