Delete duplicated metadata context

@anguss00 Done the changes that Mr. Dan wanted, you want to review this one?