code: def inject_pid(self, data):
          
          # Remove already deserialized "pid" field
          pid_value = data.pop('pid', None)
          if pid_value:
              pid_field = current_app.config['PIDSTORE_RECID_FIELD']
              data.setdefault(pid_field, pid_value)
          return data
docs: Inject context PID in the RECID field.