Refactors tooltip