This appears to have drifted off during refactoring. This function should be respeced to accept the entire "transformSpec" again so that this error message can be meaningful