I am using remove_unused_rules() function to generate a generic xfr but the problem is that it is removing transform of past references.
if a field is transformed like
A = some transformation (B)
C = some transformation (A)
D = some transformation (C)
and finally my out XFR is like
out.ABC :: D
then remove_unused_rules will remove tranform for
A=B and C=A.It will only keep D=C which will not be populated properly.
How can we avoid the above scenario?