Extract REST API interfaces to separate component.