Splitting classes out of Angular for testing