Remove unused file
Replace deprecated has_metadata with contains