@yuhunglin can't we do `angular.extend(decoratedBadges, defaults);` instead of the 3 below?