move spring context dependency up to service layer