Use ResourceDataTransformer

and redude hard dependency