Putting deconstruction code in a proc for organization and later use