Extract Method PasswordManager::replacePasswords.