Move a function from resources-util to application-util and add comma_
prefix. Fix users.