I filed https://tickets.puppetlabs.com/browse/RAZOR-239 to make this a standard part of the DSL, but it may as well stay for now.