Add function to remove extra data from the registry.