Got rid of some useless functions in typerouter