Refactored code (DRY)