duplicate factory functionality via a service, inject service into controller