Move API logic to a "classic" model file as an Angular service