Initial stab at implementation agnostic relationship matching