Factor common parts of command and transport metadata.
Improve transport metadata spec.