Use temporary variables when iterating over entities
Move variables to smaller scope
Move variables to smaller scope
Move variables to smaller scope
Code style
Indentation