Created utility function for dropping by-name-ness.

And applied it in three locations.
Merge pull request #2447 from paulp/pr/byname

Created utility function for dropping by-name-ness.