Now I'm seeing repetition. These cmd.Parameters should be extracted to a method.