Handle tagToEnum and dataToTag when applied to a constant