Britney Spears Collaborated With Katy Perry Over Heartbreak