Minimise typing when building classes