Routing: Implementing an interface for component router rules (Fix #4849)