In the template, I iterate over a set of jQueryUI objects. Ideally, I should be passing a map filtered by the data that the template uses only. Then, I could augment it with the result of this helper (as you suggest).

Since this is only used in the server-side, it doesn't really matter much AFAIK. If this was being used at client-side, then yes this should be refactored.