We're planning on doing a lot of work on Facter in Q4 which will probably work out questions like this, but in the short run this should be fine, since this idiom is used in a number of other places inside of Facter.