That's the new requirement that needs the sheathed electrical cable designated NM-B
If You can access the wiring (attic)......... you can replace the last run of wire feeding the light fixture.......Or add a new junction box to feed the fixture......remember to keep any junction boxes accessable........