Convert object initialization  to use options hash.