Right, he could donate it to a cause that he feels strongly about. Perhaps an organization that would use the money to advance the state of mathematics. Morally, this seems like what he should have done: he should have taken the money, paid taxes on it, and then given it back to the AMA.