[lib] Reduce duplication in message-types.js
Summary:
Noticed the same two properties being redefined in a bunch of types. Figured it made sense to factor it out.
Depends on D12826
Test Plan: Flow
Reviewers: tomek, kamil, marcin
Reviewed By: tomek
Differential Revision: https://phab.comm.dev/D12827