Improved formatting in create_or_update_root_layer