Factory now transforms key for value_as_key dictionaries