Moved TS classes to a separate library