simplified hiera, so all logic in common, rather than in hiera module.