Support hierarchy overrides

Previously, the logic was missing to allow overrides.

Instead of the highest precedence lookup winning, the lowest
was winning.

This commit adds a break so that it will stop checking backends
as soon as it finds a match.