We wand to use the artifact-modal in other contexts than AngularJS. To achieve that, we should migrate the artifact-modal's code away from AngularJS.
The first step in this direction is to move all the angular Services and Factories out from angular. They can simply be converted to an equivalent ES2015 module that exports functions.
For those that aren't stateless, this can also be achieved via local variables (let).
This will take some time as there are a lot of services.
First step is to move the REST service to an ES module.