Review and refactoring of notebooks web service.