Admin Bar repeats when defining custom routes

I’m experiencing an issue with the Admin Bar repeating when a plugin I’m building defines routes. Any thoughts as to where I would begin troubleshooting this? This is the define routes hook I’m using and attached is a screenshot of what I’m seeing on the public side of things.

``
function hookDefineRoutes($args)
{
//Don’t add these routes on the admin side to avoid conflicts.
if (is_admin_theme()) {
return;
}

$router = $args["router"];
$router->addConfig(
  new Zend_Config_Ini(
    PLUGIN_DIR . "/myplugin/routes.ini",
    "routes"
  )
);

}
``

duplicate-admin-bar

And you’re sure it’s the define_routes hook and not something else?

There are existing plugins that use this hook to add routes (Exhibit Builder is a simple example), and they don’t cause this problem.