Refactor TopicsController#update