Refactoring element settings/forest settings/preferences hierarchy. Doesn't work yet.