CORE-4442: rewrote the workflow element listing services in Clojure