generalize router attributes utility