I could, but there's a lot of state being passed in.  So if I defined the function inline, it wouldn't shorten the overall method.  But anything I can learn here to write better code would be most welcome.