Eliminate repetitive property code by overriding __getattr__.