Its more that this function looks messy, and the refactoring would improve it.  Preparing for extending it in the future is a bonus.