Re-factor the code using Tooltipster.