HierarchyBuilder removes internal classes in buildAgainstApp even if the method fails