Define instance attributes in `__init__` instead of doing getattr like this.