Handling an action triggered by the same component used in multiple routes

Perhaps some sort of factory service?