Make route factory constructor public