`IsTransformation` is defined in both GAP 4.7 and pre-4.7 GAP, this change just removes unnecessary code.