Can we get rid of this duplication by moving the locale loop into another method?