SEBA-721 Simplify get_synchronizer_function()

Change-Id: Ib805a26c28046c6fee74e2999b442bac0ecd1d55
diff --git a/lib/xos-api/xosapi/orm.py b/lib/xos-api/xosapi/orm.py
index 18c473d..a937e18 100644
--- a/lib/xos-api/xosapi/orm.py
+++ b/lib/xos-api/xosapi/orm.py
@@ -54,15 +54,11 @@
     """
     Find the topmost synchronizer-specific function in the call stack
     """
-    result = None
     for file, line, func, stmt in traceback.extract_stack():
         if file.startswith("/opt/xos/synchronizers"):
-            if not result:
-                result = "%s:%s()" % (file, func)
-            if not file.startswith("/opt/xos/synchronizers/new_base"):
-                result = "%s:%s()" % (file, func)
-                break
-    return result
+            result = "%s:%s()" % (file, func)
+            return result
+    return None
 
 
 class ORMGenericContentNotFoundException(Exception):