Factor signal registry into a util function.