I\'m trying to create a factory function for a NestJS Controller to keep things DRY for multiple CRUD endpoints. Below is a simplified version of the controller with only a