Revamp DebugController with TokenTypeHandlerFactory.