It might make more sense to refactor, and pass in the whole WAMP event to the handler, and let each handler deal with the message fields themselves.