Looks at a field definition for a select field and attempts to analyze and resolve any valuesGroups based on document data.
The result of this is to take a fieldDef that has a valuesGroup and either remove it if it does not match or replace the
element with a series of elements that include the values contained with the values group.