Moving some of the functionality into RESTful services