Factor out fixing a/an code.