Make message type factories pluggable.