Abstracted the hint functionality in a separate class.