Simplify _get_nested_xblocks method.