Refactor ExceptionRenderer.