Simplify hint code

Summary: Replaces D10543, which didn't land.

Reviewers: eater

Differential Revision: http://phabricator.khanacademy.org/D11646