Recursively build all nested entities