You could make a new trait for both tied to an event once you have exceeded a certain threshold that gives a bonus... I'm not real good at the modding, so I don't know if there's an easier way.
Thanks, but I am actually trying to reduce the opinion bonus that prestige/piety brings in order to make emperors less loved. Although I could make a new emperor trait that reduces overall opinion.