... or move it into a helper function. This code is way over-indented.