Extract metadata endpoints into separate app