Condensed Hero transform to method transform()