Trivial refactoring: simplify code with arrays
2 files changed