normalize relationship types vs type keys