Add a comment explaining why we need to monkey patch `add_url_rule` here?