Moved duplicate control creation to separate function.  Small cleanup