JAVA-839: Added createFromLegacyFormat static factory method.