Moved registration logic to indiviual route definition types