Preparing for settlement loading. Refactored layer loader so it can be
reused...