Move note logic to its own service.