Make tests for export transform independent of settings.

This refactors the responsibility for checking for legacy formats,
avoids conflicting settings, and allows tests to force the
export transform settings.

Change-Id: I33d7b352b7d4f8af0411d51c0a9d9f7dc2b096e7
Merge "Make tests for export transform independent of settings."