For readability and consistency with the existing code, the preference is to use a named function, defined later in the file, as opposed to using an anonymous function.