Cool. How about we open an issue to refactor this stuff and move on. In the future might be nice to also have a handler for serialization issues, for example.