Replace multiple contexts at once.