Switching to a topic exchange with routing