BS-9421, factorize the search of named elements