Will allow to make utility functions for resolving based on oneof {path, cid, cxid} and prevent duplicated code.