Change compat class to use hiera

Hiera sidesteps the parse order issues neatly,
at the cost of making this module a bit less
portable.