Refactored the GetGenderUsingForename method.

Pulled data cleaning code out into a method.