def METHOD_NAME(line, spec):
    return _do_rename(
        line,
        spec['numbered_css_renames'],
        lambda x: r"([\n \"\'}])(" + x.replace('<num>', r")(\d*)") + r"([\n \"\'{])",
        lambda x: r"\1" + spec['numbered_css_renames'][x].replace('<num>', '') + r"\3\4"
    )