I think it would be clearer for an API to have a separate `getLayer` method.