Remove usage of TypeScript module from the services layer