[nVSn_hshan] Separate the functions model and routes