Maybe just `return active_endpoint in endpoints` here?