[Refactor] Loops DRY