Better code for representing values in forms