Implements resetMetadata helper