r300: recombine the vap input route 0 code and clean