Remove layers refactoring

A refactoring can be done in the topic directive to remove all the layers. See discussion at #411.

This has to wait until background layer directive is adapted.