What happens to the family pet when your relationship ends?

Whether you bought your pet with your partner or owned it before the relationship began, it’s difficult to agree to whom the pet should belong if your de facto relationship or marriage ends.