Moved metadata loading into separate namespace.