spoolss: Move routing functions to a seperate file.