Title: Refactoring TypeScript