Spit generalized setter/getter function generator utility into its own module