Add transformations for references/definitions