It would be nice if all the boiler plate to parse the payload goes into their own file.