Cleaning up saving the UI input to persistence.