Refactor the provided code to use NestJS constructor-based dependency injection. Avoid using manual instantiation (new keyword) or static classes.