Rewrite routing logics to be more general
Rewrite routing logics to be more general

CMP-Studio/BeaconDeploymentTool,CMP-Studio/BeaconDeploymentTool,CMP-Studio/BeaconDeploymentTool,CMP-Studio/BeaconDeploymentTool