Refactor tool view.