Rework attribute access to prepare typesafe setting.