We've got this block pretty much repeated 3 times throughout the function. I'm wondering if we can a way to consolidate that once the changes based on the back-end changes have been made.