Combining these messages and the action from above into an object might help keep these functions more concise and related data together to make easier to update in the future.