This name is confusing. By reading the code in the calling method, I thought it was looking for migrated directive, and it found, do something. It is actually the opposite.
Could you rename this method to migrateDirectiveParametersToRudderNamespace(directive:Directive) ?