We do this check is several places now, it should probably be broken out into a function getFieldName.