Remove and consolidate various uses of reflection.

Oh I see you removed MapKeys. Is that just because we only use it here and it's not so useful here?