Remove unnecessary getattr