Shouldn't this function be extracted? It would be consistent with the rest of code.