Cleanup of DataKeyTop serialization.

Legacy encoding is the only encoding type that uses CodecBin2
for this specific data attachment.