@jbond pointed out in a code review that hiera() is deprecated and eventually removed in Puppet 6; instead lookup() should be used:
https://puppet.com/docs/puppet/5.2/hiera_use_hiera_functions.html
Maybe we should add a CI check which flags the use of hiera()? This way it trickles in naturally and will make a future migration to Puppet 6 simpler.