channel/msgpack: Refactor to better separate functions into modules
channel/msgpack: Move api metadata handler out of the generator