The constructor already does this logic. Could this just be `this.metadata = metadata`?