Properly parse partner reference