Respect the Law of Demeter

Move logic into the layer so the renderer doesn't need to know how it
works.