License categories will not contain the string "migration=relicense", so we only need to check this when looking at wikitext.