Refactoring karma conf