Refactoring: eliminate unneeded list comprehension