Helper infrastructure to locate and access bean factories.