You don't need to do this through private attributes. You could use ```cube.aux_coords + cube.dim_coords``` and call ```cube.coord_dims()```. I'd rather not tie this function to the implementation within cube unless absolutely necessary.