Ensure router factory is used by SM factory