Contact Summary Layout based on relationship
How about creating a Smart group for each relationship type or so and having the layout available to group of contact. If not using Apiwrapper hook you can alter the filters of 'ContactLayout' entity.