Extract router class/interface