How to avoid a messy ‘partnership divorce’