Replace getattr with more readable dot notation