Global Angular code refactoring