Clean up categories when page is going to be saved anyway