Simplify setting attribute values.