Simplify use of CompositorData::find_layer_with_pipeline_and_layer_id

Instead of always matching on the root layer first, have a Compositor
method which abstracts this away, simplifying all the call sites of this
CompositorData helper.