[thin_check] Start refactoring metadata_checker.