Removing unused attribute (reader)
Simplifying range expression
Using a simpler exception raising method