Not against this approach as in practice there aren't many other transforms that would currently benefit, but what are your thoughts about factoring out this logic into a abstract class or a separate transform?