Cleaned up feedback (hint) generation

For background, see https://docs.google.com/a/code.org/document/d/1elZH7dGuhq8-s-0-XbtSVDVgcrqkMKkV-I4IxI1NkjQ/edit#heading=h.bdygz33w9e0