We need to return the replacements in the same order as the names, so you have to iterate over ``injections``. But the second loop can collapse because you can't have two injections with the same name.