AngularJS best practices: Refactoring existing code to use Angular | Dark Hacker News