route factory cleanup