Factored out one line of code