Add metadata class terms to context.