Use the local metadata() type that handles R16/17.0 differences.