Different lookup depending on directive type.