Preventing duplicate invocation of routing logic