“divorce yourself from” = separate yourself completely from something
“Unless you divorce yourself from your work, you’ll never have time for your wife and family.”
“part ways” = separate or break up
“We decided to part ways instead of getting married. There were just too many differences between us.”