Simplify code in hiera()