Move process_reference out of process.cpp