Factor out angular services into separate file