Convert file references to constants