Make attributes first-level locals, and settings become a special attribute