Convert TreeRule to use jackson injection and mixins for json processing