removed the function fieldToVar

This function was placed into its own file.  Removing this removed a redundancy.