Reworked the way handlers are implemented. Only one type of handler, not a separate handler for commands and queries.