Refactor wmi API to return vector of objects