Hook up LayerResource
Fix some style issues during readthrough
Deduplicate scale inspection code