Refactoring of services for deploying within spring configuration