DRYed up transformation command