Refactor LayerManager into LayerManager and LayerManagerView