Refactor: less repetition and more readable (lines 2-3)