Tidy generator method length