[crt] Break NLX code into separate file.