Only define addRouteToEnv if undefined