Added `createFieldProperties` function which maps schema fields into FieldProperties.