- Refactored duplicate code