Refactoring: move all HTTP calls into service layer.