Break this into a schema per handler type and call those from each handler.