Refactored field creation into ThriftFieldFactory class