Move bulk userstory operations to services and add tests.