Refine logic so that bean names are no longer generated based on their type and containers are started early. See gh-35245