Moved user note creation logic to a service class.