My job requires me to work on a lot of legacy Angular code; this code can serve as a sort of template for a bunch of different use cases (cause I forgot all about it π³)
rather than creating an object inside a function, you pass it to the function.