Refactoring metadata into dedicated reader and value object result.
Metadata reader tests.